package com.hx.company.dao.impl;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import com.hx.company.dao.MerDao;
import com.hx.company.vo.Merchant;

public class MerDaoImpl implements MerDao {
	@PersistenceContext(name="un")
	private EntityManager em;
	@Override
	public int addMer(Merchant m) {
		em.persist(m);
		System.out.println(m.getMphone());
		return 1;
		
	}

}
